#ifndef FORM_H
#define FORM_H

#include <QWidget>
#include <QTcpSocket>
#include <attend.h>
namespace Ui {
class Form;
}

class Form : public QWidget
{
    Q_OBJECT

public:
    explicit Form(QWidget *parent = nullptr);
    ~Form();


private slots:
    void connect_ok();
    void disconnect_ok();
    void read_data();
    void on_start_button_clicked();
    void on_stop_button_clicked();
    void on_return_button_clicked();
    void readData();

// 信号声明区


signals:
    void returnPressed();  // 信号是不需要实现的，只需声明即可

private:
    Ui::Form *ui;
    attend *at;
    int stage;
    QTcpSocket *socket;
};

#endif // FORM_H
